package com.fastCms.business.frame.constant;

/**
 * @Description //TODO
 * @Param
 * @Return
 * @Date 2019/3/18 下午4:47 lsquan
 */
public class RedisConst {

    /**
     * @Description redis结构
     * @Date 2019/3/12 下午1:20 lsquan
     */
    public static class CLOUD_USER {
        /**
         * @Description 平台用户ID
         */
        public static final String CLOUD_USER_ID = "CLOUD_USER_ID" + ":";


        /**
         * @Description TOKEN_ACCOUNT_ID:accountID->token
         */
        public static final String CLOUD_TOKEN = "CLOUD_TOKEN" + ":";

    }

    /**
     * @Description redis结构
     * @Date 2019/3/12 下午1:20 lsquan
     */
    public static class USER {
        /**
         * @Description 用户ID
         */
        public static final String USER_ID = "USER_ID" + ":";

        /**
         * @Description TOKEN:USER_ID->token
         */
        public static final String TOKEN = "TOKEN" + ":";

    }

    /**
     * 系统配置数据
     */
    public static class CLOUD_ORGANIZE_DATA {
        /**
         * @Description 微信公众号配置数据
         */
        public static String WECHAT_PUBLIC_INFO = "WECHAT_PUBLIC_INFO" + ":";
    }

    /**
     * 验证码
     */
    public static class VALIDATE {

        //手机验证码内容
        public static String PHONE_CODE = "PHONE_CODE_{0}:";
        //邮箱验证码内容
        public static String EMAIL_CODE = "EMAIL_CODE_{0}:";

        public static String PHONE_SEND_NUM = "PHONE_SEND_NUM_{0}:";

        public static String EMAIL_SEND_NUM = "EMAIL_SEND_NUM_{0}:";

        /**
         * @Description 验证码
         */
        public static String PIC_NUM_CODE = "PIC_NUM_CODE" + ":";

        /**
         * @Description 登陆验证码有效时长30S
         */
        public static int VALID_CODE_TIME = 30;
    }
}
